<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="./common.jsp" %>
<script type="text/javascript" src="${ctx }/commons/js/jquery-1.11.1.js"></script>
<html>
  <head>
	<title>法律代办</title>
	<link href="${ctx}/css/front/css.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript">
		var ctx = '${ctx}';
		function login_check(){
			var user = '<%=session.getAttribute("user")%>';
			if(""==user||"null"==user){
				alert("请先登录");
				return false;
			}else{
				return true;
			}
		}
	</script>

  </head>
  
  <body>
	<div class="top_mian">
	    <div class="top">
	      <ul class="logo">
	        <li><img src="${ctx}/images/front/logo.jpg" /></li>
	        <li class="name">法律业务代办</li>
	      </ul>
	      <ul class="menu">
	        <li><a href="${ctx}/pages/front/index.jsp" target="_blank">首页</a></li>
	        <li><a href="${ctx}/ywcx/showpage.do" onclick="return login_check();" target="_blank">我要代办</a></li>
	        <li><a href="${ctx}/order/showList.do" onclick="return login_check();" target="_blank">我的代办单</a></li>
	        <li><a href="${ctx}/express/showList.do" onclick="return login_check();" target="_blank">我的快递</a></li>
	      </ul>
	      <ul class="top_dl" id="top_dl_1" style="display:block;">
	        <li><a href="${ctx}/pages/front/denglu.jsp" target="_blank">登录</a></li>
	        <li><a href="${ctx}/pages/front/zhuce.jsp" target="_blank">注册</a></li>
	      </ul>
		  <ul class="top_dl" id="top_dl_2" style="display:none;">
			<li><a href="#" style="text-decoration: none;">欢迎${user.username}</a></li>
			<li><a href="${ctx}/user/logout.do">安全退出</a></li>
		  </ul>
		 <ul>
			
		</ul>
	  	</div>
	</div>
	<script type="text/javascript">
		var user = '${user}';
		if(""!=user){
			document.getElementById("top_dl_1").style.display="none";
			document.getElementById("top_dl_2").style.display="block";
		}
	</script>
  </body>
</html>
